package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/17 9:55
 * @Describe:工作经历
 */
@ApiModel(value = "工作经历：Work")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_work")
public class Work implements Serializable {
    private static final long serialVersionUID = 4624835139450257288L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 公司名称
     */
    @TableField(value = "company")
    @ApiModelProperty(value = "公司名称")
    private String company;

    /**
     * 公司所属行业/职业
     */
    @TableField(value = "hang_ye_id")
    @ApiModelProperty(value = "公司所属行业/职业")
    private Integer hangYeId;

    /**
     * 职位名称
     */
    @TableField(value = "job")
    @ApiModelProperty(value = "职位名称")
    private String job;

    /**
     * 税前月薪
     */
    @TableField(value = "salary")
    @ApiModelProperty(value = "税前月薪")
    private BigDecimal salary;

    /**
     * 证明人姓名
     */
    @TableField(value = "witness")
    @ApiModelProperty(value = "证明人姓名")
    private String witness;

    /**
     * 证明人电话
     */
    @TableField(value = "witness_tel")
    @ApiModelProperty(value = "证明人电话")
    private String witnessTel;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value = "开始时间")
    private LocalDate startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value = "结束时间")
    private LocalDate endTime;

    /**
     * 工作职责
     */
    @TableField(value = "duty")
    @ApiModelProperty(value = "工作职责")
    private String duty;

    /**
     * 工作成绩
     */
    @TableField(value = "cheng_ji")
    @ApiModelProperty(value = "工作成绩")
    private String chengJi;

    /**
     * 工作经历标签
     */
    @TableField(value = "tags")
    @ApiModelProperty(value = "工作经历标签")
    private String tags;

    /**
     * 状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 公司地址
     */
    @TableField(value = "country_id")
    @ApiModelProperty(value = "公司地址")
    private Integer countryId;
}